$OpenBSD: patch-vcl_Library_vclplug_svp_mk,v 1.1 2015/05/03 11:30:33 robert Exp $
--- vcl/Library_vclplug_svp.mk.orig.port	Sat May  2 17:04:07 2015
+++ vcl/Library_vclplug_svp.mk	Sat May  2 17:06:48 2015
@@ -64,10 +64,10 @@ $(eval $(call gb_Library_use_static_libraries,vclplug_
     headless \
 ))
 
-ifeq ($(OS),LINUX)
+ifneq (,$(filter LINUX OPENBSD,$(OS)))
 $(eval $(call gb_Library_add_libs,vclplug_svp,\
 	-lm \
-	-ldl \
+	$(if $(filter LINUX,$(OS)),-ldl) \
 	-lpthread \
 ))
 endif
